"use strict";

/**
 * 校区相关接口调用
 */
import Ajax from "../libs/ajax";

export function getClasscampus(data) {
    return Ajax.ajax({
        url: "/api/classcampus/list",
        data: data,
        method: "post"
    }).then(res => res.data);
}

export function addClasscampus(data) {
    return Ajax.ajax({
        url: "/api/classcampus/add",
        data: data,
        method: "post"
    }).then(res => res.data);
}

export function updateClasscampus(data) {
    return Ajax.ajax({
        url: "/api/classcampus/update",
        data: data,
        method: "post"
    }).then(res => res.data);
}

export function deleteClasscampus(data) {
    return Ajax.ajax({
        url: "/api/classcampus/delete",
        data: data,
        method: "post"
    }).then(res => res.data);
}